<template>
	<view>
		<view class="nav_bar" style="background-color: rgba(255, 255, 255, 1);">
			<uni-nav-bar color="#333" left-icon="left" title="商家入驻协议" :border='false' :fixed="true"
				background-color="transparent" @clickLeft="back"></uni-nav-bar>
		</view>
		<view class="nav_box"></view>
		<view class="rich-text">
			<rich-text :nodes="data"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				circle_id: 0,
				
				data: '',
			}
		},
		methods: {

			back() {
				this.$native.backAction();
			},
			
			getStoreAgreement(){
				this.$get('/circle.circle/getStoreAgreement',{
					circle_id: this.circle_id
				}).then(res=>{
					this.data = res.data.agreement;
				})
			},
			
		},
		
		onLoad(option) {
			this.circle_id = option.circle_id || 0;
			this.getStoreAgreement();
		}
	}
</script>

<style>

</style>